home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20030409-20031118
/
000300_jimchapman@freightliner.com_Wed Sep 24 09:15:31 EDT 2003.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
3KB
|
61 lines
Article: 14543 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!panix!bloom-beacon.mit.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail
From: jimchapman@freightliner.com (Jim Chapman)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Maddening Problem with C-Kermit Script
Date: 23 Sep 2003 16:14:11 -0700
Organization: http://groups.google.com/
Lines: 42
Message-ID: <b9d3cf36.0309231514.62cade83@posting.google.com>
References: <b9d3cf36.0309230755.5fbff9b6@posting.google.com> <bkpqqo$i4u$1@sesame.cc.columbia.edu>
NNTP-Posting-Host: 170.2.52.140
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1064358853 10772 127.0.0.1 (23 Sep 2003 23:14:13 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 23 Sep 2003 23:14:13 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14543
fdc@sesame.cc.columbia.edu (Frank da Cruz) wrote in message news:<bkpqqo$i4u$1@sesame.cc.columbia.edu>...
> In article <b9d3cf36.0309230755.5fbff9b6@posting.google.com>,
> Jim Chapman <jimchapman@freightliner.com> wrote:
> : We've been using C-Kermit 5A(190) for years on an AIX 3.2.51 host for
> : remote terminal access. All this time it's worked just fine dialing
> : and connecting. Recently I thought I'd do some scripting and found
> : that my scripts always failed with the error "Command file terminated
> : by error." After some experimenting, I discovered that it was being
> : caused by any use of the "input" or "reinput" statements with the text
> : parameter. If I leave off the text parameter and include only the
> : timeout parameter (which doesn't search for much), it works fine, but
> : if I include the text parameter I get the error. At first, I thought
> : maybe this build of 5A was just broken and had gone unnoticed all this
> : time, so I downloaded version 8.0.209 and built it without errors and
> : after testing discovered it fails the SAME WAY when using "input" or
> : "reinput". I'm only trying to do a simple automated login script like
> :
> : dial \m(number)
> : if fail ...etc.
> : output \13
> : input 5 login:
> : if success...etc.
> :
> : If I'm overlooking something dumb, I wish somebody would be kind
> : enough to point it out to me. This is making me crazy...
> :
> I suspect that "set take error on" (which is NOT the default) is in
> effect when you run this script. This makes the command file terminate
> automatically when any command in it fails. If the INPUT command does not
> get the "login:" string within 5 seconds it fails, and this will give the
> result you describe.
>
> Remove the "set take error on" command from your script (or your .kermrc
> file, or wherever else it is), or if you can't find it, add "set take error
> off" to your script.
>
> - Frank
Hmmm...you're correct. Thank you. If I "set take error off", my
script works just fine under controlled pass and fail conditions.
Though, now I wonder what it doesn't like when it's enabled. It seems
as if it bails under any condition.